<include file="Public:header"/>

<link href="__PUBLIC__/Catalog/css/addAdress.css" rel="stylesheet" type="text/css" />
<style>
.bottom {
	border-bottom:1px solid #ccc;
}
</style>
</head>
<body>
<div class="main">
   <div class="title">
         <div class="title1">
             <a href="manage.html" id="back"> < </a>新增地址
         </div>
   </div>
   <div class="reg">
        <div class="reg2">
        	<form action="{:U('Order/selectaddress')}" method="post">
        	<input type="hidden" name="orderid" value="{$orderid}"/>
        		<table>
        			<foreach name="address" item="vo">
        				<tr>
        					<td>姓名:{$vo.lastname}</td>
        					<td>电话：{$vo.phone}</td>
        				</tr>
        				<tr>
        					<td colspan="2">{$vo.address_1}{$vo.address_2}</td>
        				</tr>
        				<tr>
        					<td colspan="2" style="text-align:right" class="bottom"><input type="radio" name="address_id" value="{$vo.address_id}" <if condition="$vo.default_flag eq 1">checked="checked"</if> /></td>
        				</tr>
        			</foreach>
        			<tr>
        				<td colspan="2" class="bottom"><a class="xiadan" href="{:U('Membership/address')}?back=selectaddress&orderid={$orderid}">增加地址</a></td>
        			</tr>
        			<tr>
        				<td colspan="2"><input type="submit" name="tijiao" class="xiadan" value="提交订单" /></td>
        			</tr>
        		</table>
        		
        	</form>
            
        </div>
   </div>
</div>
<script>
$(function(){
    if('{$msg}'!='0'){
        alert('{$msg}');
    }
});
</script>
<include file="Public:footer" />